{include file="public/header" /}
<form method="post" name="remark_form" id="remark_form" action="{:url('Goods/goods_setting_course')}">
    <table class="ds-default-table nobdb">
        <tbody>
            <tr class="noborder">
                <td colspan="2" class="required"><label>{$Think.lang.goods_name}:</label></td>
            </tr>
            <tr class="noborder">
                <td class="vatop rowform onoff">
                    
                    <input id="rewrite_enabled_1"   value="{$goods.goods_name}" type="text"  disabled="disabled">
                    <input id="rewrite_enabled_1" name="goods_id"  value="{$goods.goods_commonid}" type="hidden">
                </td>
                </td>

            </tr>
            <tr class="noborder">
                <td colspan="2" class="required"><label>{$Think.lang.course}:</label></td>
            </tr>
            <tr class="noborder">
                <td class="vatop rowform onoff">
                    <select class="class-select" name='course_id' id ='brand_id'>
                            {foreach name="course_info" item="v" key="k" }
                           <?php if(!empty($goods_course)){ 
                                if($goods_course['course_id'] == $v['id']){ ?>
                                <option value="{$v.id}" checked='checked'>{$v.title}</option>
                        <?php }else{?>      
                         <option value="{$v.id}" >{$v.title}</option>
                         <?php }}else{?>
                         <option value="{$v.id}" >{$v.title}</option>
                         <?php }?>
                            {/foreach}
                        </select>
                </td>

            </tr>
            
        </tbody>
        <tfoot>
            <tr class="tfoot">
                <td colspan="2">
                    <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
                </td>
            </tr>
        </tfoot>
    </table>
</form>
<script>
    $(function() {
        $('input[name="verify_state"]').click(function() {
            if ($(this).val() == 1) {
                $('tr[dstype="reason"]').hide();
            } else {
                $('tr[dstype="reason"]').show();
            }
        });
    });
</script>